/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rooster.dbmanager.datasource;

import java.sql.*;
import java.net.UnknownHostException;

/**
 *
 * @author Renukshan
 */
public class DatabaseConnection {

    private String url;
    private String dbName;
    private String driver;
    private String userName;
    private String password;

    /**
     * 
     * @throws UnknownHostException
     * @throws SQLException
     */
    public DatabaseConnection() throws UnknownHostException, SQLException {
    }

    /**
     * 
     * @param dbName
     */
    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    /**
     * 
     * @param driver
     */
    public void setDriver(String driver) {
        this.driver = driver;
    }

    /**
     * 
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 
     * @return
     */
    public String getDbName() {
        return dbName;
    }

    /**
     * 
     * @return
     */
    public String getDriver() {
        return driver;
    }

    /**
     * 
     * @return
     */
    public String getPassword() {
        return password;
    }

    /**
     * 
     * @return
     */
    public String getUrl() {
        return url;
    }

    /**
     * 
     * @return
     */
    public String getUserName() {
        return userName;
    }

    
}
